<?php
$q_instansi	= $this->db->query("SELECT * FROM tr_instansi LIMIT 1")->row();
?>

<html>
<head>
<style type="text/css" media="print">
	table {border: solid 1px #000; border-collapse: collapse; width: 100%}
	tr { border: solid 1px #000}
	td { padding: 7px 5px}
	h3 { margin-bottom: -17px }
	h2 { margin-bottom: 0px }
</style>
<style type="text/css" media="screen">
	table {border: solid 1px #000; border-collapse: collapse; width: 60%}
	tr { border: solid 1px #000}
	td { padding: 7px 5px}
	h3 { margin-bottom: -17px }
	h2 { margin-bottom: 0px }
</style>
</head>

<body onload="window.print()">
<table>
	<tr><td colspan="3">
	<h3>KEMENTERIAN AGAMA</h3>
	<h2><?php echo $q_instansi->nama; ?></h2>
	Alamat : <?php echo $q_instansi->alamat; ?>
	</td>
	</tr>

	<tr><td colspan="3" align="center" style="padding: 15px 0"><b style="font-size: 21px;">LEMBAR SURAT KELUAR</b></td></tr>
	<tr><td width="25%"><b>Indeks Berkas</b></td><td width="50%">: <?php echo $results->no_agenda; ?></td><td><b>Kode : </b><?php echo $results->kode; ?></td></tr>
	<tr><td width="25%"><b>Tanggal/Nomor</b></td><td colspan="2">: <?php echo tgl_jam_sql($results->tgl_surat)." / ".$results->no_surat; ?></td></tr>
	<tr><td><b>Isi Surat</b></td><td colspan="2">: <?php echo $results->isi_ringkas; ?></td></tr>
	<tr><td><b>Tanggal Catat</b></td><td colspan="2"><?=$results->tgl_catat?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>No. Agenda &nbsp;&nbsp; </b> ( <?php echo $results->no_agenda; ?> ) </td></tr>
	<tr><td colspan="3"><b>Tanggal Penyelesaian </b>: </td></tr>

	<tr><td colspan="3" style="line-height: 30px">Sesudah digunakan harap dikembalikan<br>
	Kepada : ........................................................................................................................................<br>
	Tanggal : ........................................................................................................................................<br>
	</td></tr>
</table>
</body>
</html>